﻿@model Inovout.Membership.Security.MailCredential
@using System.Web.Optimization
@{
    
    Layout = "~/Views/Layout/_LayoutForPC.cshtml";
   
}
@section customStyle{
    <style>
        .content {
            width: 350px;
            height: auto;
            border: 1px solid #c7c7c7;
            border-radius: 2px;
            padding: 28px 28px 0;
        }

        .input-group {
            padding-left: 15px;
            padding-right: 15px;
        }

        
    </style>
}
@section customScript{
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#mailSubmit").click(function () {
                var mail = $("#name").val();
                $("#mail").val(mail + "@@samples.cn");
            })
        })

    </script>
}
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-4 col-xs-offset-4">
            <img src="~/Images/headerimg.png" width="350" height="112" />
        </div>
    </div>
    <div class="row">
        <div class="col-xs-4 col-xs-offset-4 content">
            <div class="row" style="text-align: center">
                <img src="~/Images/ico01.png" alt="hello" class="img-rounded">
            </div>
            @using (Html.BeginForm("Mail", "Account", new { ReturnUrl = @ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal" }))
            {
                @Html.HiddenFor(x => x.Mail, new { @id="mail"})
                <input type="hidden" name="Domain"   value="samples.cn" />                
                <div class="form-group input-group">
                    @Html.TextBoxFor(x => x.Name, new { @class = "form-control", @placeholder = "电子邮件", @id = "name" })
                    <span class="input-group-addon">@@samples.cn</span>
                </div>
                <div>
                    @Html.ValidationMessageFor(x => x.Name)
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        @Html.PasswordFor(x => x.Password, new { @class = "form-control", @placeholder = "密码" })
                    </div>
                </div>
                <div>
                    @Html.ValidationMessageFor(x => x.Password)
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <input type="submit" class="btn btn-default" id="mailSubmit" style="width: 100%;" value="登录" />
                    </div>
                </div>
            }

        </div>
    </div>



</div>

